import requests

response = requests.get('https://www.baidu.com/')
# headers方法获取全部响应头的信息
print(response.headers)

# 获取指定响应头的信息
print(response.headers['Date'])

